<?php $this->_extends('_layouts/blank_layout'); ?>

<?php $this->_block('title'); ?> - 下属主机<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="<a onclick='navgo3()'>主机管理</a> > 下属主机">
	    <table>
			<tr><th width="5">　</th><th>主机名</th><th>主机IP地址</th><th>操作系统</th><th>MAC地址</th><th width="75">连接状态</th><th>创建时间</th><th width="55" align="center">操作</th></tr>
			<?php foreach ($group as $s): ?>
			<tr class="<?php if(($countno+1)/2==ceil(($countno+1)/2)){echo 'tw';} ?>"><td align="center"><?php echo $countno++;?></td><td><?php echo $s->hostname;?></td><td><?php echo $s->ipaddr;  ?></td><td><?php echo $s->ostype;?></td><td><?php echo $s->macaddress;?></td><td><?php if(isset($alive[$s->macaddress]))echo '在线';else echo '-';  ?></td><td><?php echo $s->datetime;  ?></td><td>
			 <a href="<?php echo url('default::default/framework', array('id' => $s->id.'|'.$gid,'control' => 'hostmanage','acts' => 'admins|unhost')); ?>" onclick="if(!confirm('确认移除绑定吗？')){return false;}"><img src="images/icons/unlink.png" title="移除"></a>
				</td></tr>
			<?php endforeach; ?>
			<tr class="tw">
				<td colspan="8"><input type="hidden" value="" id="startd"/><input type="hidden" value="" id="endd"/><input type="hidden" value="<?php echo $gid;?>" id="ids"/><input type="hidden" value="<?php echo $ipstr;?>" id="ipstr"/><input type="hidden" value="<?php echo $namestr;?>" id="namestr"/>
					<center>共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
				</td>
			</tr>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>